TOTPP: Freeing memory for custom resources (0x17ae9fa)